<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>地球旋转动画效果</title>
		<style>
			.earthrotate{
				width: 310px;
				height: 310px;
				background-image: url(images/earth.png);
				border-radius: 200px;
				position: relative;
				animation: run 2s linear infinite;
			}
			@keyframes run{
				from{transform: rotate(0deg);}
				to{transform: rotate(360deg);}
				0% {top:0px; left:0px;}
				25% {top:0px; left:100px; background-image: url(images/user.png);}
				50% {top:100px; left:100px;}
				75% {top:100px; left:0px; background-image: url(images/earth.png);}
				100% {top:0px; left:0px; }
			}
			.earthrotate:hover{
				animation-play-state: paused;
			}
			
			#practice {
				width: 310px;
				height: 19.375rem;
				background-image: url(images/earth.png);
				border-radius: 50000px;
				animation: earthrun 2s linear infinite;
				position: relative;
			}
			@keyframes earthrun{
				from{transform: rotate(0deg);}
				to{transform:rotate(360deg) ;}
			}
		</style>
	</head>
	<body>
		<h3>地球旋转动画效果</h3>
		<div class="earthrotate"></div>
		<div id="practice"></div>
	</body>
</html>
